package com.pie4cloud.pie.job.executor.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;

@Data
@Entity
@Table(name = "T_DATA_DISPENSE_MONITOR")
public class DispenseMonitorEntity {
	@Id
	@TableId(value = "id", type = IdType.ASSIGN_ID)
	@GenericGenerator(name="snowflakeId", strategy="com.pie4cloud.pie.jpa.id.GenerateSnowflakeId")
	@GeneratedValue(generator="snowflakeId")
	@ApiModelProperty(value="id")
	private Long id;
	//分发应收
	@Column(name = "dispense_should_num", length = 50)
	private Integer dispenseShouldNum=0;
	//分发实发
	@Column(name = "dispense_real_num", length = 50)
	private Integer dispenseRealNum=0;
	//分发晚发
	@Column(name = "dispense_late_num", length = 50)
	private Integer dispenseLateNum=0;

	@Column(name = "play_bill_monitor_id", length = 50)
	private Long playBillMonitorId;

	@Column(name = "ftp_id", length = 50)
	private Long ftpId;

/*	//多对一关系映射：多个联系人对应客户
	@ManyToOne(targetEntity=PlayBillMonitorEntity.class,cascade = CascadeType.ALL,fetch = FetchType.EAGER)
	@JoinColumn(name="play_bill_monitor_id",referencedColumnName="id")
	private PlayBillMonitorEntity playBillMonitorEntity;*/
}
